package com.citycloud.ccuap.tc.admin.projectapp;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;

import java.util.List;

/**
 * 项目（站点）菜单和角色关联对象
 * @author sufeng
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SysAppVO {
	private static final long serialVersionUID = 1L;
	/**
     * appName
	 */
	@Column(name = "app_name")
	@Condition
	private String appName;
	/**
     * 应用类型，0-web应用，1-app应用
	 */
	@Column(name = "app_type")
	@Condition
	private Integer appType;
	/**
     * 应用描述
	 */
	@Column(name = "app_describe")
	@Condition
	private String appDescribe;
	/**
     * 应用logo
	 */
	@Column(name = "app_logo")
	@Condition
	private String appLogo;
	/**
     * 关联的oauth2的应用clientId
	 */
	@Column(name = "client_id")
	@Condition
	private String clientId;

	private String clientSecret;
	private String webServerRedirectUri;
	@Id(strategy = GenerationType.AUTO)
	@Column(name = "app_id")
	@Condition
	private Long appId;
	@Column(name = "secret")
	@Condition
	private String secret;

	/**
	 * 资源id
	 */
	private String resource;
	/**
	 * 授权模式
	 */
	private List<String> authorizedGrantTypes;

}